import request from '@/utils/request'

// 房型列表
export function listBuilding(query) {
  return request({
    url: '/system/building/list',
    method: 'get',
    params: query
  })
}

// 删除房型
export function delBuilding(data) {
  return request({
    url: '/system/building/delete',
    method: 'post',
	data:data
  })
}

// 新增房型
export function insertBuilding(data) {
  return request({
    url: '/system/building/insert',
    method: 'post',
	data:data
  }) 
}

// 编辑房型
export function editBuilding(data) {
  return request({
    url: '/system/building/edit',
    method: 'post',
	data:data
  }) 
}

// 所有房型
export function allListBuilding() {
  return request({
    url: '/system/building/allList',
    method: 'get'
  }) 
}